package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
   @Autowired
    private UserService userService;
    public void AddUser(){
        User user=new User();
        user.setId(100);
        user.setName("甄姬");
        userService.AddUser(user);

    }

}
